package com.ctshk.rpc.order.scenic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ctshk.rpc.order.scenic.entity.ScenicOrderRefund;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 门票退款记录 Mapper 接口
 * </p>
 *
 * @author 张志朋
 * @since 2021-02-24
 */
public interface ScenicOrderRefundMapper extends BaseMapper<ScenicOrderRefund> {

    @Select("SELECT * from  t_scenic_order_refund where order_id =  (\n" +
            "SELECT id from t_scenic_order where order_number = #{ordernumber} LIMIT 1\n" +
            " )")
    List<ScenicOrderRefund>  queryListByOrderNumber(@Param("ordernumber") String ordernumber);
}
